﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="billdetail.aspx.cs" Inherits="MxWeiXinPF.Web.weixin.jiaoshuifei.billdetail" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

    <link href="css/weui.min.css?v=2" rel="stylesheet" />
    <link href="css/jquery-weui.min.css" rel="stylesheet" />
    <link href="css/demos.css" rel="stylesheet" />
    <script>
    </script>
    <style>
        .weui-cells {
            margin-top: 0px;
        }

           
    </style>

    <title>缴费账单</title>
</head>
<body ontouchstart>


    <div class="weui-form-preview">
        <div class="weui-form-preview__bd">
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">户号</label>
                <span class="weui-form-preview__value"><%=consno%></span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">户名</label>
                <span class="weui-form-preview__value"><%=consname%></span>
            </div>
        </div>
    </div>

    <%if (list != null && list.Count > 0)
        {
            foreach (var item in list)
            {
                string yd = "";
                if (!string.IsNullOrEmpty(item.rcvDate) && item.rcvDate.Length >= 6)
                {
                    yd = item.rcvDate.Substring(0, 4) + "年" + item.rcvDate.Substring(4, 2) + "月" + item.rcvDate.Substring(6) + "日";
                }
    %>
    <div class="weui-cells">
        <a class="weui-cell weui-cell_access" href="javascript:;">
            <div class="weui-cell__bd">
                <p><%=yd%>    <%=item.rcvType%></p>
            </div>
            <div class="weui-cell__ft"><%=Convert.ToDecimal(item.rcvAmt)/100%>元</div>
        </a>

    </div>
    <div class="weui-form-preview" style="display: none">
        <div class="weui-form-preview__bd">
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">缴费日期</label>
                <span class="weui-form-preview__value"><%=yd%></span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">缴费金额</label>
                <span class="weui-form-preview__value"><%=Convert.ToDecimal(item.rcvAmt)/100%>元</span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">付款方式</label>
                <span class="weui-form-preview__value"><%=item.rcvType%></span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">上次余额</label>
                <span class="weui-form-preview__value"><%=Convert.ToDecimal(item.prepayAmt)/100%>元</span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">本次应缴</label>
                <span class="weui-form-preview__value"><%=Convert.ToDecimal(item.rcvblAmt)/100%>元</span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">本次余额</label>
                <span class="weui-form-preview__value"><%=Convert.ToDecimal(item.thisPayAmt)/100%>元</span>
            </div>

        </div>
    </div>




    <% }
        }
        else
        {%>

    <div class='demos-content-padded'>

        <div class="weui-loadmore weui-loadmore_line">
            <span class="weui-loadmore__tips">暂无数据</span>
        </div>
        <div class="weui-loadmore weui-loadmore_line weui-loadmore_dot">
            <span class="weui-loadmore__tips"></span>
        </div>
    </div>

    <%  } %>
    <script src="js/zepto.min.js"></script>
    <script>

        $(function () {
            $(".weui-cells").click(function () {
                $(this).next(".weui-form-preview").toggle();

            })
        })
    </script>

        <div style="height:20px;">&nbsp;</div>
</body>
</html>


